Ext.ns('App.Store');

App.Store.Preset = new Ext.data.Store({
	storeId : 'presetStore',

	model   : 'modelPreset',
	hasMany : {
    	model: 'modelCounter', 
    	name : 'counterSet'
    },

	autoLoad: true,
	proxy: {
		type: 'ajax',
		url : 'res/data/allData.json',
		reader: {
			type: 'json',
			root: 'dataRoot'
		}
	},
	
	sorters : [{
		property : 'presetGroup',
		direction: 'ASC'
	}],
	getGroupString : function(record) {
		return record.get('presetGroup');
	}
});